import datetime

from django.shortcuts import render


def runoob(request):
    context = {}
    context['hello'] = 'Hello World!'
    context['name'] = '菜鸟教程'
    context['list'] = ["菜鸟教程1", "菜鸟教程2", "菜鸟教程3"]
    context['dict'] = {"name": "菜鸟教程"}
    context['empty'] = ''
    context['filesize'] = 1024
    context['now'] = datetime.datetime.now()
    context['tag_a'] = "<a href='https://www.runoob.com/'>点击跳转</a>"
    context['num'] = 59
    context['person'] = {"name":"xuanxuan", "age":18}
    return render(request, 'runoob.html', context)

def block(request):
    return render(request, 'extends.html', {})